{extend name="homePage/userPage" /}
{block name="css"}
{/block}
{block name="main"}
    <div style="border:1px solid #ccc">

            <table class="table table-hover">
                <thead>
                      <tr>
                        <th>文件名</th>
                        <th>时间</th>
                        <th>类别</th>
                        <th>目的部门</th>
                        <th>归档类型</th>
                        <th>是否加密</th>
                        <th>操作</th>
                      </tr>
                    </thead>
                    <tbody>
                        {if condition="$textlist neq ''"}
                            {volist name="textlist" id="vo" }
                            <tr>
                                <td>
                                    {$vo.textname}
                                </td>
                                <td>
                                    <?PHP echo date("Y-m-d ",$vo['asktime'])?>
                                </td>
                                <td>
                                    {if condition="$vo['type'] eq 0"}
                                        个人文件
                                    {elseif condition="$vo['type'] eq 1"/}
                                        部门内部文件
                                    {else /}
                                        部门交流文件
                                    {/if}
                                </td>
                                <td>
                                    {if condition="$vo['type'] neq 2"/}
                                        本部门
                                    {else /}
                                        <!--获取目的部门名称-->
                                        {foreach $classnamelist as $v}
                                            {if condition="$vo['outcid'] eq $v['id']"/}
                                                {$v.name}
                                            {/if}
                                        {/foreach}
                                    {/if}
                                </td>
                                <td>
                                    {foreach $taglist as $v}
                                            {if condition="$vo['tagid'] eq $v['id']"/}
                                                {$v.tagname}
                                            {/if}
                                        {/foreach}
                                </td>
                                <td>
                                    {if condition="$vo['isencrypt'] eq 0"/}
                                        非加密
                                    {else/}
                                        加密
                                    {/if}

                                </td>
                                    <td>
                                        <a href="{:url('Document/watchtext',['id'=>$vo.id])}" class="btn btn-success" >查看</a>
                                    </td>
                            </tr>
                            {/volist}
                        {else/}
                            <tr> <td colspan="6"><h1>暂无数据!</h1></td></tr>
                        {/if}
                    </tbody>
                    </table>


    </div>


{/block}
{block name="js"}

{/block}
